﻿@model AssetManageSystem.ViewModel.AssetManage.AssetInfoVMs.AssetInfoVM
@inject IStringLocalizer<Program> Localizer;

<wt:form vm="@Model" label-width="120">
    <wt:tab width="830">
        <wt:tabheaders>
            <wt:tabheader title="基本信息" />
            <wt:tabheader title="维修记录" />
            <wt:tabheader title="调拨记录" />
            <wt:tabheader title="借用记录" />
        </wt:tabheaders>
        <wt:tabcontents>
            <wt:tabcontent>
                <wt:row items-per-row="ItemsPerRowEnum.Two">
                    <wt:display field="Entity.AsCode" />
                    <wt:display field="Entity.Status" />
                </wt:row>
                <wt:row items-per-row="ItemsPerRowEnum.Three" >
                    <wt:display field="Entity.Type.TypeName" />
                    <wt:display field="Entity.AsName" />
                    <wt:display field="Entity.MeasUnit" />
                    <wt:display field="Entity.AssetOwnership" />
                    <wt:display field="Entity.Source" />
                    <wt:display field="Entity.Servicelife" />
                    <wt:display field="Entity.PurchasPrice" />
                    <wt:display field="Entity.BuyTime" />
                    <wt:display field="Entity.Supplier" />
                    <wt:display field="Entity.SupplierContact" />
                    <wt:display field="Entity.SupplierTel" />
                    <wt:display field="Entity.AssetModels" />
                    <wt:display field="Entity.MaintenanceEndTime" />
                    <wt:display field="Entity.ProductSerialNumber" />
                    <wt:display field="Entity.UsePeople.UserName" />
                    <wt:display field="Entity.UseDep.DepName" />
                    <wt:textarea field="Entity.Remarks" colspan="3" disabled="true" />
                </wt:row>

            </wt:tabcontent>
            <wt:tabcontent>
                <wt:grid height="400" vm="@Model.AssetRepairList" url="/AssetManage/AssetRepair/Search"
                    hidden-grid-index="true" hidden-checkbox="true" use-local-data="true" />
            </wt:tabcontent>
            <wt:tabcontent>
                <wt:grid height="400" vm="@Model.AssetAllocationList" url="/AssetManage/AssetAllocation/Search"
                    hidden-grid-index="true" hidden-checkbox="true" use-local-data="true" />
            </wt:tabcontent>
            <wt:tabcontent>
                <wt:grid height="400" vm="@Model.AssetBorrowList" url="/AssetManage/AssetBorrow/Search"
                    hidden-grid-index="true" hidden-checkbox="true" use-local-data="true" />
            </wt:tabcontent>

        </wt:tabcontents>
    </wt:tab>
    <wt:row align="AlignEnum.Right">
        <wt:closebutton />
    </wt:row>
</wt:form>
